VectorRenderer.this

Creates a new [class@VectorRenderer] to render vector tiles from @data_source.

  1. this(ShumateVectorRenderer* shumateVectorRenderer, bool ownedRef)
  2. this(DataSource dataSource, string styleJson)
  3. this(string urlTemplate, string styleJson)
  4. this(string id, string name, string license, string licenseUri, uint minZoom, uint maxZoom, uint tileSize, ShumateMapProjection projection, DataSource dataSource, string styleJson)
    class VectorRenderer
    this
    (
    string id
    ,
    string name
    ,
    string license
    ,
    string licenseUri
    ,
    uint minZoom
    ,
    uint maxZoom
    ,,
    ShumateMapProjection projection
    ,,
    string styleJson
    )
  5. this(string id, string name, string license, string licenseUri, uint minZoom, uint maxZoom, uint tileSize, ShumateMapProjection projection, string urlTemplate, string styleJson)

Parameters

id string

the map source's id

name string

the map source's name

license string

the map source's license

licenseUri string

the map source's license URI

minZoom uint

the map source's minimum zoom level

maxZoom uint

the map source's maximum zoom level

tileSize uint

the map source's tile size (in pixels)

projection ShumateMapProjection

the map source's projection

dataSource DataSource

a [class@DataSource] to provide tile image data

Return Value

a newly constructed [class@VectorRenderer] object

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta